using NodeCanvas.Variables;

namespace NodeCanvas.Actions
{
	[Name("Set Mecanim Int")]
	public class MecanimSetInt : MecanimActions
	{
		[RequiredField]
		public BBString parameter;

		public BBInt setTo;

		protected override string info
		{
			get
			{
				return string.Concat("Mec.SetInt '", parameter, "' to ", setTo);
			}
		}

		protected override void OnExecute()
		{
			base.animator.SetInteger(parameter.value, setTo.value);
			EndAction();
		}
	}
}
